1. In My Reports, select the report, then click Edit report.
2. To edit the existing layout, click the Layout button, then click the Edit this layout in the layout designer button.
4. On the Property Grid in the Behavior section, expand the Scripts property and click the event on which to run the script.
7. Click OK to save changes and exit the script editor.Click the Designer tab to return to the Report Designer to continue editing the report.